package com.jiu345.api.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiu345.api.pojo.BaseEntity;
import com.jiu345.api.pojo.SkusSpec;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * package:GoodsCategory
 *
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:购物车
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CartVo implements Serializable {

    /* id*/
    @TableId(value = "id")
    private Long id;

    /*商品名称*/
    private String goodsName;

    /*sku 名称*/
    private Long skuId;
    @TableField(exist = false)
    private String skuName;

    /*图片*/
    private String goodsImgUrl;
    private String skuImgUrl;

    /*商品数量*/
    private Integer count;
    /*单价*/
    private BigDecimal price;
    /*选中状态*/
    private Boolean selected;
    /*规格*/
    private List<SkusSpec> specs;

}
